<template>
  <div>
    <h1>{{ text }}</h1>
    <button @click="flag">点击翻转</button>
  </div>
</template>

<script>
export default {
  name: 'App',
  data () {
    return {
      text: 'Hello,World'
    }
  },
  methods: {
    flag () {
      this.text = this.text.split('').reverse().join('')
    }
  }
}
</script>

<style scoped lang="less"></style>
